home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / cli / UnixUtils.lha / UnixUtils / Source / makefile < prev    next >
Encoding:
Makefile  |  1992-04-04  |  2.0 KB  |  82 lines

  1. # For SAS-C v5.10 LMK.
  2.  
  3. ROOT = Sys
  4.  
  5. C0 = -cus -O                              # cc options
  6. L0 = LC:blink FROM LIB:c.o                # blink leader
  7. L1 = LIBRARY LIB:lc.lib LIB:amiga.lib     # blink libraries
  8. L2 =                                      # blink trailer
  9. LD = $(ROOT):Lint/                        # lint directory
  10. LH = $(ROOT):LC/Compiler_Headers/         # standard includes (for lint)
  11.  
  12. .c.o:
  13.   LC:lc $(C0) $*
  14.  
  15. head: head.o
  16.   $(L0) head.o TO head $(L1) $(L2)
  17.  
  18. sort: sort.o token.o btree.o
  19.   $(L0) sort.o token.o btree.o TO sort $(L1) $(L2)
  20.  
  21. b_sort: b_sort.o token.o b_tree.o
  22.   $(L0) b_sort.o token.o b_tree.o TO b_sort $(L1) $(L2)
  23.  
  24. s_sort: s_sort.o s_tree.o
  25.   $(L0) s_sort.o s_tree.o TO s_sort $(L1) $(L2)
  26.  
  27. strings:  strings.o
  28.   $(L0) strings.o TO strings $(L1) $(L2)
  29.  
  30. tail: tail.o
  31.   $(L0) tail.o TO tail $(L1) $(L2)
  32.  
  33. tree: tree.o
  34.   $(L0) tree.o TO tree $(L1) $(L2)
  35.  
  36. head.o: head.c mlo.h
  37.  
  38. token.o:  token.c sort.h
  39.  
  40. sort.o: sort.c sort.h mlo.h
  41.  
  42. strings.o:  strings.c mlo.h
  43.  
  44. b_sort.o: sort.c sort.h mlo.h
  45.   LC:lc $(C0) -ob_sort.o -DBALANCED_TREE sort
  46.  
  47. s_sort.o: sort.c sort.h mlo.h
  48.   LC:lc $(C0) -os_sort.o -DSIMPLE sort
  49.  
  50. tail.o: tail.c mlo.h
  51.  
  52. btree.o: btree.c sort.h mlo.h
  53.  
  54. b_tree.o: btree.c sort.h mlo.h
  55.   LC:lc $(C0) -ob_tree.o -DBALANCED_TREE btree
  56.  
  57. s_tree.o: btree.c sort.h mlo.h
  58.   LC:lc $(C0) -os_tree.o -DSIMPLE btree
  59.  
  60. head.lint:  head.c
  61.   $(LD)Lint >head.lint +vm -zero -i$(LH) $(LD)co head
  62.  
  63. sort.lint:  sort.c token.c btree.c sort.h
  64.   $(LD)Lint >sort.lint +vm -zero -i$(LH) $(LD)co sort token btree
  65.  
  66. b_sort.lint:  sort.c token.c btree.c sort.h
  67.   $(LD)Lint >b_sort.lint +vm -zero -dBALANCED_TREE -i$(LH) \
  68.   $(LD)co sort token btree
  69.  
  70. s_sort.lint:  sort.c btree.c sort.h
  71.   $(LD)Lint >s_sort.lint +vm -zero -dSIMPLE -i$(LH) \
  72.   $(LD)co sort btree
  73.  
  74. strings.lint:  strings.c
  75.   $(LD)Lint >strings.lint +vm -zero -i$(LH) $(LD)co strings
  76.  
  77. tail.lint:  tail.c
  78.   $(LD)Lint >tail.lint +vm -zero -i$(LH) $(LD)co tail
  79.  
  80. tree.lint:  tree.c
  81.   $(LD)Lint >tree.lint +vm -zero -i$(LH) $(LD)co tree
  82.